<!DOCTYPE html>
<html lang="zh-CN-Hans">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Report v1.0.0</title>
    <link rel="stylesheet" href="/css/style.css">
    <link rel="stylesheet" href="/css/bootstrap.min.css">
</head>

<body class="bg-light">
    <nav class="navbar navbar-expand-lg navbar-dark bg-primary">
        <div class="container">
            <span class="navbar-brand">前端监控</span>
            <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar"
                aria-controls="navbar" aria-expanded="false">
                <span class="navbar-toggler-icon"></span>
            </button>
        </div>
    </nav>
    <div class="container py-5">
        <div class="row mb-3">
            <div class="col-12 text-center mb-4">
                <h2 id="date"></h2>
            </div>
            <div class="col-6 mb-4 d-flex align-items-stretch">
                <div class="card">
                    <p class="card-header bg-white">
                        系统内存状态:
                    </p>
                    <div class="card-body">
                        <ul class="list-group">
                            <li class="list-group-item d-flex justify-content-between align-items-center">
                                内存大小限制
                                <span class="badge badge-success badge-pill" id="jsHeapSizeLimit">0</span>
                            </li>
                            <li class="list-group-item d-flex justify-content-between align-items-center">
                                可使用内存：
                                <span class="badge badge-success badge-pill" id="totalJSHeapSize">0</span>
                            </li>
                            <li class="list-group-item d-flex justify-content-between align-items-center">
                                已使用内存
                                <span class="badge badge-success badge-pill" id="usedJSHeapSize">0</span>
                            </li>
                            <li class="list-group-item d-flex justify-content-between align-items-center">
                                状态
                                <span class="badge badge-success badge-pill" id="state">正常</span>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="col-6 mb-4 d-flex align-items-stretch">
                <div class="card">
                    <p class="card-header bg-white">
                        静态资源状态:
                    </p>
                    <div class="card-body">
                        <ul class="list-group">
                            <li class="list-group-item d-flex justify-content-between align-items-center">
                                图片异常：
                                <span class="badge badge-pill badge-success" id="img">0</span>
                            </li>
                            <li class="list-group-item d-flex justify-content-between align-items-center">
                                样式异常
                                <span class="badge badge-success badge-pill" id="link">0</span>
                            </li>
                            <li class="list-group-item d-flex justify-content-between align-items-center">
                                脚本异常
                                <span class="badge badge-success badge-pill" id="script">0</span>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>

            <div class="col-6 mb-4 d-flex align-items-stretch">
                <div class="card">
                    <p class="card-header bg-white">
                        系统运行异常:
                    </p>
                    <div class="card-body">
                        <ul class="list-group">
                            <li class="list-group-item d-flex justify-content-between align-items-center">
                                异常数量：
                                <span class="badge badge-pill badge-success" id="errorCount">0</span>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="col-6 mb-4 d-flex align-items-stretch">
                <div class="card">
                    <p class="card-header bg-white">
                        异步请求异常:
                    </p>
                    <div class="card-body">
                        <ul class="list-group">
                            <li class="list-group-item d-flex justify-content-between align-items-center">
                                正常请求:
                                <span class="badge badge-pill badge-success" id="XHR-OK">0</span>
                            </li>
                            <li class="list-group-item d-flex justify-content-between align-items-center">
                                异常请求:
                                <span class="badge badge-pill badge-success" id="XHR-ERR">0</span>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        <script src="https://cdn.bootcss.com/echarts/4.2.1/echarts.min.js"></script>
        <script src="/js/axios.min.js"></script>
        <script src="/js/index.js"></script>
</body>

</html>